package cn.kgc.vuedemoebook.service.impl;

import cn.kgc.vuedemoebook.mapper.CategoryMapper;
import cn.kgc.vuedemoebook.pojo.Category;
import cn.kgc.vuedemoebook.service.CategoryServcie;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service
public class CategoryServcieImpl implements CategoryServcie {

    @Resource
    CategoryMapper categoryMapper;

    @Override
    public List<Category> selAll() {
        List<Category> list = categoryMapper.selectByExample(null);

        return list;
    }
}
